package com.example.demo.service;

import com.example.demo.Hystrix.UserServiceHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by 蔡超 on 2019/1/10.
 */
@FeignClient(value = "cc-spring-cloud-service-user",fallback = UserServiceHystrix.class)
public interface UserServiceI {

    @RequestMapping(value = "hi", method = RequestMethod.GET)
    public String sayHi(@RequestParam(value = "message") String message);

}
